<?php
$stratdates = date('Y-m-d');
$addTwosdaysIndate = date("Y-m-d", strtotime("$stratdates +2 day"));
?>
<!--====================  people like slider start here===============-->
<section class="people-like coloring">
    <div class="container">
        <div class="row">
            <div class="col-lg-12 column12 classes-padl classes-padr">
                <div class="cat-head">
                   literally ending  <span class="highlighted">tomorrow</span><a href="<?php echo $this->createAbsoluteUrl('/classes/literalendingtommorow/'); ?>">See all</a>
                </div>
                <div id="owl-people" class="owl-carousel owl-theme">
                    <?php
                    if (!empty($allClassCourseInfo)) {
                        $emptyImage = '<img src="' . getWorkNoshopimage(SkillConfig::skill_literallyending_like_classe_slider). '" class="img-responsive">';
                        foreach ($allClassCourseInfo as $classDetail) {
                            if ($classDetail['start_date'] <= $addTwosdaysIndate) {
                                if (!empty($classDetail['classes_id'])) {
                                    $imageName = ClassImage::getPrimaryImage($classDetail['classes_id']);
                                    $courseName = $classDetail['class_titile'];
                                    $userDetails = getUserTypeByClassCourse('Classes', $classDetail['classes_id']);
                                    $imagePath = getImagePathByClassCourse('Classes', $classDetail['classes_id']);
                                    $url = $this->createAbsoluteUrl('/workshop-'.$classDetail['classes_id'].'/'.$classDetail['class_seo_title']);
                                } else {
                                    $imageName = ClassImage::getCoursesPrimaryImage($classDetail['courses_id']);
                                    $courseName = $classDetail['course_titile'];
                                    $userDetails = getUserTypeByClassCourse('Courses', $classDetail['courses_id']);
                                    $imagePath = getImagePathByClassCourse('Courses', $classDetail['courses_id']);
                                    $url = $this->createAbsoluteUrl('/courses-'.$classDetail['courses_id'].'/'.$classDetail['course_seo_title']);
                                }
                                ?>


                                <div class="single-cat">
                                    <a href="<?php echo $url; ?>">
                                        <?php echo (!empty($imageName)) ? '<img src="' . getRequestbaseUrl() . getuploadFolderDir() . SkillConfig::getClassCourseImagePath($imagePath) . '240X180/' . $imageName . '" class="img-responsive" alt="' . $courseName . '">' : $emptyImage; ?>
                                    <span><?php echo substrclasscourname($courseName); ?><small>By <?php echo substr($userDetails->first_name . '  ' . $userDetails->last_name, 0, 30); ?></small></span>
                                    </a>
                                </div><!--single people end here-->
                                <?php
                            }
                        }
                    }
                    ?>
                </div><!--===slider end here-->
                <div class="gap"></div>
                <div class="customNavigation">
                    <a class="prev11">Previous</a>
                    <a class="next11">Next</a>
                </div><!--custom navigation-->
                <div class="gap"></div>
            </div><!--col-->
        </div><!--row-->
    </div><!--container-->
</section>
<!--========================ending tomorrow ends here=========================-->  




